Xbasic

thread.create Method

Syntax

dim result as L = thread.Create(name as c, code as c [, variable_frame as p [, exact_name as l]])

Arguments

nameCharacter

The thread name. Can be blank. If blank, a generated name will be assigned.

codeCharacter

 

variable_framePointer

If defined, the base variable frame to use for the thread.

exact_nameLogical

If another thread with the same name exists and exact_name is set to .T., the thread name will be munged.

Returns

resultLogical

Returns .T. if the operation succeeds. Otherwise .F..

Description

Create a new thread, name can be blank (in which case a name is assigned), if optional variable frame is defined - it becomes the base variable frame, if optional exact-name parameter is set, the name will be munged if a thread of that name already exists.